﻿@using ThuySan.Areas.Backend.Models
<!-- Sidebar with logo and menu -->
@{
    string menulv1 = "";
    string menulv2 = "";
    if (ViewData.ContainsKey(Header.Key))
    {
        Header header = ViewData[Header.Key] as Header;
        if (header != null)
        {
            menulv1 = header.Menulv1;
            menulv2 = header.Menulv2;
        }
    }
}
<ul id="main-nav">
    <!-- Accordion Menu -->
    <li><a href="/" class="nav-top-item no-submenu @(menulv1 == "00"
                                                             ? "current"
                                                             : "")">
            <!-- Add the class "no-submenu" to menu items with no sub menu -->
            Dashboard </a></li>
    <li><a href="#" class="nav-top-item @(menulv1 == "01"
                                                  ? "current"
                                                  : "")">
            <!-- Add the class "current" to current menu item -->
            Dữ liệu </a>
        <ul>
            <li><a class="@(menulv2 == "0101"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "Category")">
                    Loại sản phẩm </a></li>
            <li><a class="@(menulv2 == "0102"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "Product")">
                    Sản phẩm </a></li>
            <li><a class="@(menulv2 == "0103"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "Property")">
                    Thuộc tính </a></li>
            <li><a class="@(menulv2 == "0104"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "Tag")">
                    Tag </a></li>
        </ul>
    </li>
    <li><a href="#" class="nav-top-item @(menulv1 == "02"
                                                  ? "current"
                                                  : "")">
            <!-- Add the class "current" to current menu item -->
            Cấu hình </a>
        <ul>
            <li><a class="@(menulv2 == "0201"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "Setting")">
                    Cấu hình </a></li>
            <li><a class="@(menulv2 == "0203"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "User")">
                    Tài khoản </a></li>
            <li><a class="@(menulv2 == "0204"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "Banner")">
                    Banner </a></li>
            <li><a class="@(menulv2 == "0205"
                                    ? "current"
                                    : "")" href="@Url.Action("Index", "Email")">
                    Email Template </a></li>
        </ul>
    </li>
</ul>
<div class="clear">
</div>
<!-- End .clear -->